<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%-- 页面标题栏 --%>
<div class="title">
	<s:label cssClass="current fl" key="admin.labelList.title" />
	<s:a href="/admin/home.html" cssClass="back fr">
		[<s:text name="common.button.back" />]
	</s:a>
	<div class="clear"></div>
	<hr class="title" />
</div>

<%-- 页面信息 --%>
<div class="clear titleMessage">
	<s:actionmessage cssClass="fl" />
	<s:actionerror cssClass="fl" />
</div>

<%-- 检索条件 --%>
<div class="clear body p10">
	<s:form action="/admin/labelList.html" cssClass="fr p0 m0" method="post" theme="simple">
		<s:if test="labelLang1 != null">
			<s:label key="admin.labelList.labelText" cssClass="tar" cssStyle="color: black;" />
			(<s:property value="labelLang1" />):
			<s:textfield name="labelName1" cssClass="sti" />
		</s:if>
		<s:if test="labelLang2 != null">
			<s:label key="admin.labelList.labelText" cssClass="tar" cssStyle="color: black;" />
			(<s:property value="labelLang2" />):
			<s:textfield name="labelName2" cssClass="sti" />
		</s:if>
		<s:if test="labelLang3 != null">
			<s:label key="admin.labelList.labelText" cssClass="tar" cssStyle="color: black;" />
			(<s:property value="labelLang3" />):
			<s:textfield name="labelName3" cssClass="sti" />
		</s:if>
		<s:if test="labelLang4 != null">
			<s:label key="admin.labelList.labelText" cssClass="tar" cssStyle="color: black;" />
			(<s:property value="labelLang4" />):
			<s:textfield name="labelName1" cssClass="sti" />
		</s:if>
		<s:if test="labelLang5 != null">
			<s:label key="admin.labelList.labelText" cssClass="tar" cssStyle="color: black;" />
			(<s:property value="labelLang5" />):
			<s:textfield name="labelName5" cssClass="sti" />
		</s:if>
		<s:submit  key="common.button.search" cssClass="smallbtn1 tac vac plr" />
	</s:form>
</div>

<%-- 表格 --%>
<div class="table clear">
	<%-- 表格标题栏 --%>
	<div class="row">
		<div class="cell-table-header">
			<s:text name="admin.labelList.labelId" />
		</div>
		<div class="cell-table-header w100">
			<s:text name="admin.labelList.labelText" />
			<s:if test="labelLang1 != null">
				(<s:property value="labelLang1" />)
			</s:if>
		</div>
		<div class="cell-table-header w100">
			<s:text name="admin.labelList.labelText" />
			<s:if test="labelLang2 != null">
				(<s:property value="labelLang2" />)
			</s:if>
		</div>
		<div class="cell-table-header w100">
			<s:text name="admin.labelList.labelText" />
			<s:if test="labelLang3 != null">
				(<s:property value="labelLang3" />)
			</s:if>
		</div>
		<div class="cell-table-header w100">
			<s:text name="admin.labelList.labelText" />
			<s:if test="labelLang4 != null">
				(<s:property value="labelLang4" />)
			</s:if>
		</div>
		<div class="cell-table-header w100">
			<s:text name="admin.labelList.labelText" />
			<s:if test="labelLang5 != null">
				(<s:property value="labelLang5" />)
			</s:if>
		</div>
		<div class="cell-table-header w100">
			<s:text name="admin.labelList.startDate" />
		</div>
		<div class="cell-table-header w100">
			<s:text name="admin.labelList.endDate" />
		</div>
		<div class="cell-table-header w120">
			<s:text name="common.label.operations" />
			<s:a action="labelAdd">
				[<s:text name="common.button.add" />]
			</s:a>
		</div>
	</div>
	<%-- 循环显示列表 --%>
	<s:iterator value="labelDetailList" var="labelDetailBean">
		<div class="row">
			<div class="cell-border tar">
				<s:property value="#labelDetailBean.labelId" />
			</div>
			<s:if test="labelLang1 != null">
				<div class="cell-border">
					<s:property value="#labelDetailBean.labelText1" />
				</div>
			</s:if>
			<s:else>
				<div class="cell-border bcg"></div>
			</s:else>
			<s:if test="labelLang2 != null">
				<div class="cell-border">
					<s:property value="#labelDetailBean.labelText2" />
				</div>
			</s:if>
			<s:else>
				<div class="cell-border bcg"></div>
			</s:else>
			<s:if test="labelLang3 != null">
				<div class="cell-border">
					<s:property value="#labelDetailBean.labelText3" />
				</div>
			</s:if>
			<s:else>
				<div class="cell-border bcg"></div>
			</s:else>
			<s:if test="labelLang4 != null">
				<div class="cell-border">
					<s:property value="#labelDetailBean.labelText4" />
				</div>
			</s:if>
			<s:else>
				<div class="cell-border bcg"></div>
			</s:else>	
			<s:if test="labelLang5 != null">
				<div class="cell-border">
					<s:property value="#labelDetailBean.labelText5" />
				</div>
			</s:if>
			<s:else>
				<div class="cell-border bcg"></div>
			</s:else>
			<div class="cell-border">
				<s:date name="#labelDetailBean.startDate" format="%{#request.dateFormat}" />
			</div>
			<div class="cell-border">
				<s:date name="#labelDetailBean.endDate" format="%{#request.dateFormat}" />
			</div>
			<div class="cell-border tac">
				<s:if test="#labelDetailBean.statusId == 1">
					<s:a action="labelEdit">
						[<s:text name="common.button.edit" />]
						<s:param name="labelId" value="#labelDetailBean.labelId"></s:param>
					</s:a>
					<s:a action="labelDelete">
						[<s:text name="common.button.delete" />]
						<s:param name="labelId" value="#labelDetailBean.labelId"></s:param>
					</s:a>
				</s:if>
				<s:else>
					<s:a action="labelRevive">
						[<s:text name="common.button.revive" />]
						<s:param name="labelId" value="#labelDetailBean.labelId"></s:param>
					</s:a>
				</s:else>
			</div>
		</div>
	</s:iterator>
</div>